<?php

if(!defined("INDEX"))
    die;

if(!check_get('id') || !valid_id($_GET['id']))
    throw new HackException();

// ----------------------------------------------------------------------------

$artist = null;

try {

    $artist = Artist::getById($_GET['id']);

} catch (Exception $e) {

}

if(!($artist instanceof Artist))
    throw new Exception(_('Sorry, no such artist.'));

$smarty->assign('artist', $artist);

$smarty->assign('labels', $artist->getLabels());
$smarty->assign('members', $artist->getMembers());
$smarty->assign('releases', $artist->getReleases());
$smarty->assign('tags', $artist->getTags());
